package com.cjh.springcloud;

import com.cjh.myrule.MyRandomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author cjh
 * @Date 2020/12/4 10:01
 * @Version 1.0
 */
@SpringBootApplication
@EnableEurekaClient
// 在微服务启动的时候就能加载 自定义的Ribbon类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-EMP", configuration = MyRandomRule.class)
public class EmpConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(EmpConsumer_80.class, args);
    }
}
